package com.wilmer.knowledges.mapper;

import com.wilmer.knowledges.domain.YwHomeKnowledge;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 育儿知识库Mapper接口
 * 
 * @author hans
 * @date 2024-04-18
 */
@Mapper
public interface YwHomeKnowledgeMapper 
{
    /**
     * 查询育儿知识库
     * 
     * @param knowledgeId 育儿知识库主键
     * @return 育儿知识库
     */
    public YwHomeKnowledge selectYwHomeKnowledgeByKnowledgeId(Long knowledgeId);

    /**
     * 查询育儿知识库列表
     * 
     * @param ywHomeKnowledge 育儿知识库
     * @return 育儿知识库集合
     */
    public List<YwHomeKnowledge> selectYwHomeKnowledgeList(YwHomeKnowledge ywHomeKnowledge);

    /**
     * 新增育儿知识库
     * 
     * @param ywHomeKnowledge 育儿知识库
     * @return 结果
     */
    public int insertYwHomeKnowledge(YwHomeKnowledge ywHomeKnowledge);

    /**
     * 修改育儿知识库
     * 
     * @param ywHomeKnowledge 育儿知识库
     * @return 结果
     */
    public int updateYwHomeKnowledge(YwHomeKnowledge ywHomeKnowledge);

    /**
     * 删除育儿知识库
     * 
     * @param knowledgeId 育儿知识库主键
     * @return 结果
     */
    public int deleteYwHomeKnowledgeByKnowledgeId(Long knowledgeId);

    /**
     * 批量删除育儿知识库
     * 
     * @param knowledgeIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteYwHomeKnowledgeByKnowledgeIds(Long[] knowledgeIds);

    /**
     * 查询育儿知识库的文章数量
     * @return
     */
    public int YwHomeKnowledgeCount();
}
